package PangView;

import javax.swing.*;
import java.awt.*;

/**
 * Created by baraaorabi on 5/11/15.
 */
public class MainFrame extends JFrame{
    private GameplayPanel gameplayPanel;

    public MainFrame(){
        Dimension dim = new Dimension (500, 500);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        gameplayPanel = new GameplayPanel();
        gameplayPanel.getIgnoreRepaint();
        this.add(gameplayPanel);
        this.pack();
        this.setTitle("Pang!");
        this.setResizable(true);
        this.setVisible(true);

    }

    public void runMe() {
        gameplayPanel.playGame(this);
    }
}
